<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
let tu=["1.jpeg","2.jpeg","3.jpeg","4.jpeg","5.jpeg","6.jpeg","7.jpeg","8.jpeg","9.jpeg","10.jpeg"];
for(let i=0;i<10;i++){
    let pho=document.createElement("img");
    pho.width=200;
    pho.src=tu[i];
    document.body.appendChild(pho);
    pho.onclick=function () {
        document.body.removeChild(pho);
    }
}
</script>
</body>
</html>